﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ConsoleApp1
{
    class Program
    {
        enum Gender 
        {
           男,//0
           女 
        }
        public enum Week 
        {
            星期一 = 10,
            星期二,
            星期三 = 20,
            星期四,
            星期五,
            星期六,
            星期日
        }

        static void Main(string[] args)
        {
            Gender man = Gender.女;
            Console.WriteLine(man);
            int m = (int)man;
            Console.WriteLine(m);

            Week mon = Week.星期五;
            Console.WriteLine(mon);
            int mo = (int)mon;
            Console.WriteLine(mo);
            Console.WriteLine("Week.星期一 = " + (int)Week.星期一);
            Console.WriteLine("Week.星期二 = " + (int)Week.星期二);
            Console.WriteLine("Week.星期三 = " + (int)Week.星期三);
            Console.WriteLine("Week.星期四 = " + (int)Week.星期四);
            Console.WriteLine("Week.星期五 = " + (int)Week.星期五);
            Console.WriteLine("Week.星期六 = " + (int)Week.星期六);
            Console.WriteLine("Week.星期日 = " + (int)Week.星期日);


            Gender x = (Gender)1;
            Console.WriteLine(x);
            Week y = (Week)Enum.Parse(typeof(Week),"星期三");
            Console.WriteLine((int)y);
            //枚举转int 强转
            //枚举转string ToString()
            //int转枚举 强转
            //string转枚举 

            //Employee emp = new Employee();
            //emp.Name = "关羽";
            //emp.Number = 2;
            //emp.DeptName = "市场部";
            //emp.SayHi();

            //Employee emp2 = new Employee("刘备",1,"行政部");
            //emp2.SayHi();

            //Employee.SayHello();

            //Test();
            //Program pro = new Program();
            //pro.Test1();

            //Student stu = new Student();
            //stu.Name = "大乔";
            //stu.Age = 18;
            //Student.Count++;
            //stu.PrintMsg();

            //Student stu2 = new Student();
            //stu2.Name = "小乔";
            //stu2.Age = 17;
            //Student.Count++;
            //stu2.PrintMsg();

            //Student stu3 = new Student();
            //stu3.Name = "曹操";
            //stu3.Age = 40;
            //Student.Count++;
            //stu3.PrintMsg();

            //Console.WriteLine();

        }

        public void Test1()
        {

        }

        public static void Test(Week week)
        {
            switch (week)
            {
                case Week.星期一:
                    break;
                case Week.星期二:
                    break;
                case Week.星期三:
                    break;
                case Week.星期四:
                    break;
                case Week.星期五:
                    break;
                case Week.星期六:
                    break;
                case Week.星期日:
                    break;
                default:
                    break;
            }
            Console.WriteLine();
        }
    }
}
